package com.hopu.proxy;

public class CellphoneTest {

    public static void main(String[] args) {
        //创建工厂对象
        CellphoneSales factory = new CellphoneFactory();
        //创建专卖店对象
        CellphoneSales shop = new CellphoneShop(factory);
        //调用卖手机
        shop.sellCellphone("华为P50");
    }
}
